home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1995 March / SOFM_Mar1995.bin / mac / General Interest / KeyQuencer 1.2.1 / Documentation / Tips and hints / Endless macros < prev    next >
Text File  |  1994-11-24  |  928b  |  24 lines

  1. KeyQuencer provides an easy way to create endless macros, i.e. macros that are repeated over and over until you stop them manually with a command-shift-return keystroke. If you use the Key command at the end of your macro, and have it type the key combination that was assigned to the macro itself, the macro will automatically restart every time it reaches the end. Here's an example where the first macro sets up the environment and calls the second, which is an endless macro:
  2.  
  3. Macro name: Finder counter
  4. Macro key: cmd-opt-ctrl-c
  5. Macro text:
  6.  
  7. SwitchApp "Finder"
  8. Counter reset
  9. Menu "Edit" "Show Clipboard"
  10. Click zoombox opt
  11. Key cmd opt ctrl shift "c"
  12.  
  13. Macro name: Finder counter loop
  14. Macro key: cmd-shift-opt-ctrl-c
  15. Macro text:
  16.  
  17. Counter increment copy
  18. ChangeClip "The macro has run " before
  19. ChangeClip " times." after
  20. Wait 1 seconds
  21. Key cmd shift opt ctrl "c"
  22.  
  23. (Remember: you must use command-shift-return to stop the loop).
  24.